package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 原材料对象 raw_material
 * 
 * @author liukangzu
 * @date 2025-04-17
 */
public class RawMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 原材料id */
    @Excel(name = "原材料id")
    private Integer rawMaterialId;

    /** 原材料名称 */
    @Excel(name = "原材料名称")
    private String rawMaterialName;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Integer rawMaterialSupplierId;

    /** 原材料库存 */
    @Excel(name = "原材料库存")
    private Integer rawMaterialStock;

    @Excel(name = "供应商")
    private Supplier supplier;

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rawMaterialTime;

    public void setRawMaterialId(Integer rawMaterialId) 
    {
        this.rawMaterialId = rawMaterialId;
    }

    public Integer getRawMaterialId() 
    {
        return rawMaterialId;
    }

    public void setRawMaterialName(String rawMaterialName) 
    {
        this.rawMaterialName = rawMaterialName;
    }

    public String getRawMaterialName() 
    {
        return rawMaterialName;
    }

    public void setRawMaterialSupplierId(Integer rawMaterialSupplierId) 
    {
        this.rawMaterialSupplierId = rawMaterialSupplierId;
    }

    public Integer getRawMaterialSupplierId() 
    {
        return rawMaterialSupplierId;
    }

    public void setRawMaterialStock(Integer rawMaterialStock) 
    {
        this.rawMaterialStock = rawMaterialStock;
    }

    public Integer getRawMaterialStock() 
    {
        return rawMaterialStock;
    }

    public void setRawMaterialTime(Date rawMaterialTime) 
    {
        this.rawMaterialTime = rawMaterialTime;
    }

    public Date getRawMaterialTime() 
    {
        return rawMaterialTime;
    }

    @Override
    public String toString() {
        return "RawMaterial{" +
                "rawMaterialId=" + rawMaterialId +
                ", rawMaterialName='" + rawMaterialName + '\'' +
                ", rawMaterialSupplierId=" + rawMaterialSupplierId +
                ", rawMaterialStock=" + rawMaterialStock +
                ", supplier=" + supplier +
                ", rawMaterialTime=" + rawMaterialTime +
                '}';
    }
}
